package com.sl.au.entity;

import javax.persistence.*;

@Entity
@Table(name = "sl_au_m2r")
public class M2R extends Root {

	@OneToOne()
	@JoinColumn(name = "roleId")
	private Role role;
	@OneToOne
	@JoinColumn(name = "moduleId")
	private Module module;
	
	@Column(name = "nReadOnly")
	private boolean readOnly;
	
	@Column(name = "nAddOnly")
	private boolean addOnly;
	
	@Column(name = "nDeleteOnly")
	private boolean deleteOnly;
	@Column(name="nOther1Only")
	private boolean other1Only;

	@Column(name="nOther2Only")
	private boolean other2Only;
	@Column(name = "nModifyOnly")
	private boolean modifyOnly;
	
	@Column(name = "nDataFilter")
	private String dataFilter;
	public boolean isOther1Only() {
		return other1Only;
	}
	
	public void setOther1Only(boolean other1Only) {
		this.other1Only = other1Only;
	}
	
	public boolean isOther2Only() {
		return other2Only;
	}
	
	public void setOther2Only(boolean other2Only) {
		this.other2Only = other2Only;
	}

	public String getDataFilter() {
		return dataFilter;
	}

	public void setDataFilter(String dataFilter) {
		this.dataFilter = dataFilter;
	}

	public boolean isReadOnly() {
		return readOnly;
	}

	public void setReadOnly(boolean readOnly) {
		this.readOnly = readOnly;
	}

	public boolean isAddOnly() {
		return addOnly;
	}

	public void setAddOnly(boolean addOnly) {
		this.addOnly = addOnly;
	}

	public boolean isDeleteOnly() {
		return deleteOnly;
	}

	public void setDeleteOnly(boolean deleteOnly) {
		this.deleteOnly = deleteOnly;
	}

	public boolean isModifyOnly() {
		return modifyOnly;
	}

	public void setModifyOnly(boolean modifyOnly) {
		this.modifyOnly = modifyOnly;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
}
